package com.paw.portal.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.paw.common.domain.IBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author Rubble
 * @since 2021-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_menu")
@ApiModel(value = "SysMenu对象", description = "菜单权限表")
public class SysMenu implements IBaseEntity, Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "菜单ID")
  @TableId(value = "f_id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "父菜单ID")
  @TableField("f_parent_id")
  private Long parentId;

  @ApiModelProperty(value = "菜单名称")
  @TableField("f_name")
  private String name;

  @ApiModelProperty(value = "标题")
  @TableField("f_title")
  private String title;

  @ApiModelProperty(value = "菜单类型（0：目录；1：菜单；2：按钮）")
  @TableField("f_menu_type")
  private Integer menuType;

  @ApiModelProperty(value = "路径")
  @TableField("f_path")
  private String path;

  @ApiModelProperty(value = "隐藏菜单（0：否；1：是）")
  @TableField("f_hide_in_menu")
  private Integer hideInMenu;

  @ApiModelProperty(value = "隐藏子菜单（0：否；1：是）")
  @TableField("f_hide_children_in_menu")
  private Integer hideChildrenInMenu;


  @ApiModelProperty(value = "模块")
  @TableField("f_module")
  private String module;

  @ApiModelProperty(value = "权限标识")
  @TableField("f_perms")
  private String perms;

  @ApiModelProperty(value = "菜单图标")
  @TableField("f_icon")
  private String icon;

  @ApiModelProperty(value = "显示顺序")
  @TableField("f_sort_num")
  private Integer sortNum;

  @ApiModelProperty(value = "备注")
  @TableField("f_remark")
  private String remark;

  @ApiModelProperty(value = "创建者")
  @TableField(value = "f_create_by", fill = FieldFill.INSERT)
  private String createBy;

  @ApiModelProperty(value = "创建时间")
  @TableField(value = "f_create_time", fill = FieldFill.INSERT)
  private Date createTime;

  @ApiModelProperty(value = "更新者")
  @TableField(value = "f_update_by", fill = FieldFill.UPDATE)
  private String updateBy;

  @ApiModelProperty(value = "更新时间")
  @TableField(value = "f_update_time", fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;


}
